﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;
using Microsoft.AspNetCore.Identity;
using Microsoft.AspNetCore.Identity.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore;

namespace Eqwww.Domain.Models.Identity
{
    public class RoleModel : IdentityRole, ICreateAudited, ILastUpdateAudited, IDeleteAudited
    {
        [Display(Name = "创建人")]
        public string CreateUserId { get; set; }

        public virtual UserModel CreateUser { get; set; }
        [Display(Name = "创建时间")]
        public DateTime? CreateTime { get; set; }
        [Display(Name = "最后更新人")]
        public string LastUpdateUserId { get; set; }
        public virtual UserModel LastUpdateUser { get; set; }
        [Display(Name = "最后更新时间")]
        public DateTime? LastUpdateTime { get; set; }
        [Display(Name = "删除标识")]
        public bool? DeleteMark { get; set; }
        [Display(Name = "删除人")]
        public string DeleteUserId { get; set; }
        public virtual UserModel DeleteUser { get; set; }
        [Display(Name = "删除时间")]
        public DateTime? DeleteTime { get; set; }

        [Display(Name = "角色名称")]
        public string ShowName { get; set; }

        [Display(Name = "系统角色标识")]
        public bool? IsSystem { get; set; }

        [Display(Name = "排序码")]
        public int? SortCode { get; set; }

        [Display(Name = "描述")]
        public string Description { get; set; }
    }
}
